﻿using FluentNHibernate.Mapping;
using Entidades;
using Persistencia.Mappings.Extensions;

namespace Persistencia.Mappings
{
    /// <summary>
    /// Mapeo para la clase MailPago
    /// </summary>
    public class MailPagoMap : ClassMap<MailPago>
    {
        /// <summary>
        /// Constructor por defecto
        /// </summary>
        public MailPagoMap()
        {
            Table("MAIL_PAGO");
            
            this.DefaultMap();

            References(x => x.Mail).Column("Id_Mail");
            References(x => x.Pago).Column("Id_Pago");
        }
    }
}